package com.github.satant.job.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import java.time.LocalDateTime;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;


/**
 * 用户表
 *
 * @author dear_satant
 * @email 446269825@qq.com
 * @date 2018-06-26 21:32:18
 */
@Table(name = "st_user")
@Data
public class StUser implements Serializable {

    private static final long serialVersionUID = 1L;

    //
    @Id
    private Integer id;

    //用户姓名
    @Column(name = "name")
    private String name;

    //用户年龄
    @Column(name = "age")
    private Integer age;

    //用户学校
    @Column(name = "college")
    private String college;

    //用户邮箱
    @Column(name = "email")
    private String email;

    //用户积分
    @Column(name = "point")
    private Integer point;

    //用户手机号码
    @Column(name = "phone")
    private String phone;

    //用户生日
    @Column(name = "birthday")
    private LocalDateTime birthday;

    //是否为会员 1:是，2：否
    @Column(name = "vip")
    private Integer vip;

    //帐号是否被冻结。1：未冻结，2：冻结
    @Column(name = "freeze")
    private Integer freeze;

    //创建日期
    @Column(name = "create_time")
    private LocalDateTime createTime;

    //是否通过认证  1：通过，2：认证中,3未通过
    @Column(name = "authentication")
    private Integer authentication;

    //用户现居地
    @Column(name = "now_live")
    private String nowLive;

    //用户名
    @Column(name = "username")
    private String username;

    //密码
    @Column(name = "password")
    private String password;


}
